<template>
  <div class="app-container">
    <el-form ref="zxwdForm" :model="info" :rules="rules" label-width="160px">
      <el-row>
        <el-col :span="12">
          <el-form-item label="上市市场" prop="zxSssc">
            <el-select style="width: 100%" filterable clearable v-model="info.zxSssc" placeholder="请选择上市市场">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00270'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="证券分类" prop="zxZqfl">
            <el-select style="width: 100%" filterable clearable v-model="info.zxZqfl" placeholder="请选择证券分类">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'ZQ0003'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="证券类型" prop="zxZqlx">
            <el-select style="width: 100%" filterable clearable v-model="info.zxZqlx" placeholder="请选择发行方式">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'ZQ0001'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="行业分类" prop="zxHyfl">
            <el-select style="width: 100%" filterable clearable v-model="info.zxHyfl" placeholder="请选择行业分类">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'HY0001'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="证券类型小类" prop="zxZqlxxl">
            <el-select style="width: 100%" filterable clearable v-model="info.zxZqlxxl" placeholder="请选择证券类型小类">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00400'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="证券类别" prop="zxZqlb">
            <el-select style="width: 100%" filterable clearable v-model="info.zxZqlb" placeholder="请选择证券类别">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'ZQ0004'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="发行人规模" prop="zxFxrGm">
            <el-select style="width: 100%" filterable clearable v-model="info.zxFxrGm" placeholder="请选择发行人规模">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'ZQ0004'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="银行资本补充工具分类" prop="zxYhzbBcgjfl">
            <el-select style="width: 100%" filterable clearable v-model="info.zxYhzbBcgjfl" placeholder="请选择银行资本补充工具分类">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'ZQ0004'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="境内境外" prop="zxJnjw">
            <el-select style="width: 100%" filterable clearable v-model="info.zxJnjw" placeholder="请选择境内境外">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'ZQ0004'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="人行对手方分类" prop="zxDsfRhfl">
            <el-select style="width: 100%" filterable clearable v-model="info.zxDsfRhfl" placeholder="请选择人行对手方分类">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'ZQ0004'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="是否永续债" prop="zxSfyxz">
            <el-select style="width: 100%" filterable clearable v-model="info.zxSfyxz" placeholder="请选择是否永续债">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00016'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="评级信息" prop="zxZtPjnr">
            <el-input v-model="info.zxZtPjnr" placeholder="请输入评级信息"/>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="债项评级" prop="zxZxPjnr">
            <el-input v-model="info.zxZxPjnr" placeholder="请输入债项评级"/>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="主体评级" prop="zxZtPjjg">
            <el-input v-model="info.zxZtPjjg" placeholder="请输入主体评级"/>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="债项评级机构" prop="zxZxPjjg">
            <el-input v-model="info.zxZxPjjg" placeholder="请输入债项评级机构"/>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="主体评级机构" prop="zxZxZtyxpj">
            <el-input v-model="info.zxZxZtyxpj" placeholder="请输入主体评级机构"/>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="发行人名称" prop="zxFxrmc">
            <el-input v-model="info.zxFxrmc" placeholder="请输入发行人名称"/>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="统一社会信用代码" prop="zxTyshxydm">
            <el-input v-model="info.zxTyshxydm" placeholder="请输入统一社会信用代码"/>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
  //import {listTswd, getTswd, delTswd, addTswd, updateTswd} from "@/api/reportworld/tswd";

  export default {
    props: {
      info: {
        type: Object,
        default: null
      },
      tpGlExhibDatadicts: {
        type: Array,
        default: []
      }
    },
    name: "tswdInfo",
    dicts: ['sys_common_status'],
    data() {
      return {
        // 查询参数
        queryParams: {},
        // 表单参数
        form: {},
        // 表单校验
        rules: {}
      };
    },
    created() {
    },
    methods: {}
  };
</script>
